<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <form action="">
            <input type="radio" v-model='selectedValue' name="football" id="" value='足球'>足球
            <input type="radio" v-model='selectedValue' name="basketball" id="" value='篮球'>篮球
            <input type="radio" v-model='selectedValue' name="ppball" id="" value='乒乓球'>乒乓球
            <input type="radio" v-model='selectedValue' name="ymball" id="" value='羽毛球'>羽毛球
        </form>
        <button @click='showData'>按钮</button>
    </div>
    <script src='./js/vue.js'></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                selectedValue: ''
            },
            methods: {
                showData() {
                    console.log(this.selectedValue)
                }
            },

        })
    </script>
</body>

</html>